package com.hzw.saas.service.ds.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzw.saas.api.ds.bo.RankingInfoBo;
import com.hzw.saas.api.ds.bo.RankingNumBo;
import com.hzw.saas.api.ds.enums.ClientTypeEnum;
import com.hzw.saas.service.ds.model.OnlineLevelInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OnlineLevelInfoMapper extends BaseMapper<OnlineLevelInfo> {

    List<RankingInfoBo> getRankingList(@Param("clientType") ClientTypeEnum clientType,
                                       @Param("size") Integer size);

    RankingNumBo getCurrentUserRankingInfo(@Param("clientType") ClientTypeEnum clientType,
                                           @Param("userId") String userId);

}